<template>
  <h3>child组件 - {{ count }}</h3>
  <button @click="add">btn</button>
</template>

<script>
import counter from "@/hooks/useCounter";

export default {
  setup() {
    const [count, add, minus] = counter(10);

    return {
      count,
      add,
      minus,
    };
  },
};
</script>
